package com.dy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.dto.SetmealDto;
import com.dy.entity.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * @Date:2022/8/4 16:06
 * @Author:dy
 */
@Mapper
@Repository
public interface SetmealMapper extends BaseMapper<Setmeal> {
    //获取 套餐分页查询数据
    List<SetmealDto> getPageData(@Param("page") Integer page, @Param("pageSize")Integer pageSize,@Param("name") String name);

    //获取数据总数
    Long getTotal(@Param("name") String name);

    //获取要删除的 套餐图片路径
    List<String> getFileName(@Param("ids") List<Long> ids);
}
